<template>
    <view @click="layout">退出登录</view>
    <view @click="layout">退出登录</view>
    <view @click="layout">退出登录</view>

    <view @click="layout">退出登录</view>
</template>

<script setup>
import { useUserStore } from '@/stores'
const store = useUserStore()
const layout = () => {
    store.clearUserAll()
    uni.reLaunch({
        url: '/pages/home/home',
    })
}
</script>

<style lang="scss" scoped>
//
</style>
